// pages/about/index.js
const { BASEURL } = require('../../utils/baseurl')
const { helpMy } = require('../../utils/api')
const { fetch } = require('../../utils/fetch')

Page({
    data: {
        url: '',
        specificarea:null,
    },

    onLoad: function(options) {
        if(wx.getStorageSync('specificarea')) {
            this.setData({
              specificarea:wx.getStorageSync('specificarea')
            })
          }
        this.setData({
            url: BASEURL + `wx/info/${this.data.specificarea}/list`
        })
        
        // wx.hideShareMenu()
    },
    onReady: function() {},
    onShow: function() {},

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function() {},

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function() {},

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function() {},

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function() {},

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function() {}
})
